home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf;
-
- import com.sun.java.swing.Icon;
- import java.awt.Component;
- import java.awt.Graphics;
- import java.io.Serializable;
-
- public class IconUIResource implements Icon, UIResource, Serializable {
- private Icon delegate;
-
- public IconUIResource(Icon delegate) {
- if (delegate == null) {
- throw new IllegalArgumentException("null delegate icon argument");
- } else {
- this.delegate = delegate;
- }
- }
-
- public int getIconHeight() {
- return this.delegate.getIconHeight();
- }
-
- public int getIconWidth() {
- return this.delegate.getIconWidth();
- }
-
- public void paintIcon(Component c, Graphics g, int x, int y) {
- this.delegate.paintIcon(c, g, x, y);
- }
- }
-